package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.dto.CheckGroupDto;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheckGroupMapper extends BaseMapper<CheckGroup> {
    @Select("select g.* from tb_setmeal_group s ,tb_check_group g\n" +
            "where setmeal_id = #{setmealId} and s.group_id = g.id")
    public List<CheckGroupDto> selectBySetmealId(@Param("setmealId") Long setmealId);
}
